<?php

include("inc/class.otr.php");
$otr = new OTR();

if($otr->checkLogin()){
	$leftsource = 'menu.php';
	$rightsource = 'start.php';
} else {
	$leftsource = 'login.php';
}


?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" type="text/css" href="styles/style.css" />
<script src="src/moo.js" type="text/javascript"></script>
<script src="src/script.js" type="text/javascript"></script>
<title>Project Organizer</title>
<body>
	<div style="position: absolute; height: 40px; width: 100%; top: 0; left: 0;" id="topPanel"></div>
	<div style="position: absolute; top: 60px; left: 0; width: 200px; height: 90%; background-color: rgb(255,226,226);" id="leftPanel"></div>
	<div style="position: absolute; left: 200px; top: 60px; background-color: rgb(226,226,255);" id="workspace"></div>
</body>	
</html>
<script type="text/javascript">
	ajaxGet("<?php echo($leftsource);?>", null, $('leftPanel'), null);
	ajaxGet("top.htm", null, $('topPanel'), null);
</script>
